package com.ruoyi.basicInfo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.basicInfo.mapper.WarehouseCoalMapper;
import com.ruoyi.basicInfo.domain.WarehouseCoal;
import com.ruoyi.basicInfo.service.IWarehouseCoalService;

import javax.annotation.Resource;

/**
 * 仓储煤种信息Service业务层处理
 * 
 * @author zbw
 * @date 2022-07-16
 */
@Service
public class WarehouseCoalServiceImpl implements IWarehouseCoalService 
{
    @Resource
    private WarehouseCoalMapper warehouseCoalMapper;

    /**
     * 查询仓储煤种信息
     * 
     * @param id 仓储煤种信息主键
     * @return 仓储煤种信息
     */
    @Override
    public WarehouseCoal selectWarehouseCoalById(String id)
    {
        return warehouseCoalMapper.selectWarehouseCoalById(id);
    }

    /**
     * 查询仓储煤种信息列表
     * 
     * @param warehouseCoal 仓储煤种信息
     * @return 仓储煤种信息
     */
    @Override
    public List<WarehouseCoal> selectWarehouseCoalList(WarehouseCoal warehouseCoal)
    {
        return warehouseCoalMapper.selectWarehouseCoalList(warehouseCoal);
    }

    /**
     * 新增仓储煤种信息
     * 
     * @param warehouseCoal 仓储煤种信息
     * @return 结果
     */
    @Override
    public int insertWarehouseCoal(WarehouseCoal warehouseCoal)
    {
        return warehouseCoalMapper.insertWarehouseCoal(warehouseCoal);
    }

    /**
     * 修改仓储煤种信息
     * 
     * @param warehouseCoal 仓储煤种信息
     * @return 结果
     */
    @Override
    public int updateWarehouseCoal(WarehouseCoal warehouseCoal)
    {
        return warehouseCoalMapper.updateWarehouseCoal(warehouseCoal);
    }

    /**
     * 批量删除仓储煤种信息
     * 
     * @param ids 需要删除的仓储煤种信息主键
     * @return 结果
     */
    @Override
    public int deleteWarehouseCoalByIds(String[] ids)
    {
        return warehouseCoalMapper.deleteWarehouseCoalByIds(ids);
    }

    /**
     * 删除仓储煤种信息信息
     * 
     * @param id 仓储煤种信息主键
     * @return 结果
     */
    @Override
    public int deleteWarehouseCoalById(String id)
    {
        return warehouseCoalMapper.deleteWarehouseCoalById(id);
    }
}
